package so.sao.code.service.infrastructure.model.vo;

import java.util.Date;

import javax.persistence.Convert;

import com.fasterxml.jackson.annotation.JsonFormat;

import so.sao.code.service.infrastructure.enums.TAG_SCRAP_STATUS;
import so.sao.code.service.infrastructure.enums.TAG_SCRAP_TYPE;
import so.sao.code.service.infrastructure.jpa.convert.TagScrapStatusConvert;
import so.sao.code.service.infrastructure.jpa.convert.TagScrapTypeConvert;

public class TagScrapVO {
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
	private Date createDate;
	/**
	 * 企业名
	 */
	private String enterpriseName;
	/**
	 * 工厂name
	 */
	private String printFactoryName = "";
	/**
	 * 终端id
	 */
	private Long terminalId = 0L;
	/**
	 * 报废类型
	 */
	@Convert(converter = TagScrapTypeConvert.class)
	private TAG_SCRAP_TYPE type = TAG_SCRAP_TYPE.SCRAPBYBATCH;

	/**
	 * 码序号
	 */
	private Long seqnum = 0L;
	 
	/**
	 * 批次name
	 */
	private String tagBatchName = "";
	 
	/**
	 * 标签报废数量
	 */
	private Long tagScrapCount = 0L;

	/**
	 * 登记产品name
	 */
	private String productName = "";
	/**
	 * 操作人name
	 */
	private String userName = "";
	/**
	 * 报废状态
	 */
	@Convert(converter = TagScrapStatusConvert.class)
	private TAG_SCRAP_STATUS status = TAG_SCRAP_STATUS.SCRAPSUCCESS;
}
